package com.station.search.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * @author: JT
 * @date: 2021/8/31
 * @Title:  设备属性表
 */
@Setter
@Getter
@TableName(value = "EQUIPMENT_ATTRIBUTE", autoResultMap = true)
public class EquipmentAttribute {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 属性名称 */
    private String attributeName ;
    /** 属性类型 */
    private String attributeType ;
    /** 参考值 */
    @TableField(value = "reference_value",typeHandler = FastjsonTypeHandler.class)
    private List<Map<String, Object>> referenceValue ;

}
